package com.atguigu.ssyx.sys.controller;

import com.atguigu.ssyx.common.result.Result;
import com.atguigu.ssyx.model.sys.Ware;
import com.atguigu.ssyx.sys.service.WareService;
import com.atguigu.ssyx.vo.product.WareQueryVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author 杨林
 * @create 2023-07-18 14:31 星期二
 * description:
 */
@RequestMapping("/admin/sys/ware")
@RestController
@CrossOrigin
@Api(tags = "仓库管理")
public class WareController {
    
    @Autowired
    private WareService wareService;

    /**
     * 查找所有仓库
     * @return
     */
    @ApiOperation(value = "查询所有仓库信息")
    @GetMapping("findAllList")
    public Result findAllList(){
        List<Ware> result = wareService.findAllList();
        return Result.ok(result);
    }
    
}
